package com.go.where.manager.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.go.where.manager.dao.CourseDao;
import com.go.where.manager.pojo.CourseInfo;

@Repository("courseDao")
public class CourseDaoImpl extends BaseDaoImpl<CourseInfo> implements CourseDao {

	@Override
	protected String getNameSpace() {
		return "mybatis.xml.CourseMapper";
	}

	@Override
	public List<CourseInfo> queryAll() {
		return getSqlSession().selectList(getNameSpace() + ".queryAll");
	}

	@Override
	public String getNextCourseKey() {
		return getSqlSession().selectOne(getNameSpace()+".getNextCourseKey");
	}

}
